<template>
  <nm-form-dialog ref="form" v-bind="form" v-on="on" :visible.sync="visible_">
    <el-row>
      <el-col :span="20" :offset="1">
        <el-form-item label="用户名：" prop="userName">
          <el-input v-model="form.model.userName" clearable />
        </el-form-item>
        <el-form-item label="密码：" prop="password">
          <el-input v-model="form.model.password" clearable />
        </el-form-item>
        <el-form-item label="昵称：" prop="nickName">
          <el-input v-model="form.model.nickName" clearable />
        </el-form-item>
        <el-form-item label="真实姓名：" prop="realName">
          <el-input v-model="form.model.realName" clearable />
        </el-form-item>
        <el-form-item label="用户头像：" prop="userPhoto">
          <el-input v-model="form.model.userPhoto" clearable />
        </el-form-item>
        <el-form-item label="手机：" prop="phone">
          <el-input v-model="form.model.phone" clearable />
        </el-form-item>
        <el-form-item label="生日：" prop="brithday">
          <el-input v-model="form.model.brithday" clearable />
        </el-form-item>
        <el-form-item label="QQ：" prop="qQ">
          <el-input v-model="form.model.qQ" clearable />
        </el-form-item>
        <el-form-item label="邮箱：" prop="email">
          <el-input v-model="form.model.email" clearable />
        </el-form-item>
        <el-form-item label="用户积分：" prop="score">
          <el-input v-model="form.model.score" clearable />
        </el-form-item>
        <el-form-item label="用户历史消费总积分：" prop="totalScore">
          <el-input v-model="form.model.totalScore" clearable />
        </el-form-item>
        <el-form-item label="最后登录IP：" prop="lastLoginIP">
          <el-input v-model="form.model.lastLoginIP" clearable />
        </el-form-item>
        <el-form-item label="最后登录时间：" prop="lastLoginTime">
          <el-input v-model="form.model.lastLoginTime" clearable />
        </el-form-item>
        <el-form-item label="钱包金额：" prop="walletMoney">
          <el-input v-model="form.model.walletMoney" clearable />
        </el-form-item>
        <el-form-item label="冻结金额：" prop="freezeMoney">
          <el-input v-model="form.model.freezeMoney" clearable />
        </el-form-item>
        <el-form-item label="用户状态：" prop="userStatus">
          <el-input v-model="form.model.userStatus" clearable />
        </el-form-item>
        <el-form-item label="支付密码：" prop="payPassword">
          <el-input v-model="form.model.payPassword" clearable />
        </el-form-item>
      </el-col>
    </el-row>
  </nm-form-dialog>
</template>
<script>
import { mixins } from 'nbmodular-ui'

const { add, edit, update } = $api.member.user

export default {
  mixins: [mixins.formSave],
  data() {
    return {
      title: '会员账号',
      actions: { add, edit, update },
      form: {
        model: {
          /** 用户名 */
          userName: '',
          /** 密码 */
          password: '',
          /** 昵称 */
          nickName: '',
          /** 真实姓名 */
          realName: '',
          /** 用户头像 */
          userPhoto: '',
          /** 手机 */
          phone: '',
          /** 生日 */
          brithday: '',
          /** QQ */
          qQ: '',
          /** 邮箱 */
          email: '',
          /** 用户积分 */
          score: '',
          /** 用户历史消费总积分 */
          totalScore: '',
          /** 最后登录IP */
          lastLoginIP: '',
          /** 最后登录时间 */
          lastLoginTime: '',
          /** 钱包金额 */
          walletMoney: '',
          /** 冻结金额 */
          freezeMoney: '',
          /** 用户状态 */
          userStatus: '',
          /** 支付密码 */
          payPassword: ''
        },
        rules: {}
      }
    }
  }
}
</script>
